package com.guoqi.repository;

import com.guoqi.domain.UserInfo;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Repository
public interface UserRepository extends MongoRepository<UserInfo,String>{
    UserInfo findByNickname(String name);
    List<UserInfo> findByPassword(String passwd);
//    UserInfo

}
